﻿using Framework.Core.BootStrapper.WindowsService;
using Xunit;

namespace Framework.Tests.Core.BootStrapper
{
    public class WindowsServiceArgsTest
    {
        [Fact]
        public void Should_return_plugin_if_name_is_null()
        {
            const string expected = "pouet";
            var windowsServiceArgs = new WindowsServiceArgs { Plugin = expected };

            Assert.Equal(expected, windowsServiceArgs.Name);
            Assert.Equal(expected, windowsServiceArgs.DisplayName);
            Assert.Equal(expected, windowsServiceArgs.ToString());
        }
    }
}
